package com.yict.csms.resourceplan.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 
 * @author tortoi.huang
 * 
 */
@Entity
@Table(name = "CSMS_RTGC_FL_WHARF_NEEDHOUR")
public class RtgcFlWhartNeedHour {

	@Id
	@Column(name = "NEEDHOURID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_rtgc_fl_whart_needHour_seq")
	@SequenceGenerator(name = "csms_rtgc_fl_whart_needHour_seq", sequenceName = "SEQ_CSMS_RTGC_FL_NEEDHOUR", allocationSize = 1, initialValue = 1)
	private Long needHourId;

	@ManyToOne
	@JoinColumn(name = "TIMEID")
	private RtgcFlTime rtgcFlTime;

	@Column(name = "FORSEGMENT")
	private String forSegment;
	
	@Column(name = "TIMESEGMENT1")
	private double timeSegment1;
	
	@Column(name = "TIMESEGMENT2")
	private double timeSegment2;

	@Column(name = "TIMESEGMENT3")
	private double timeSegment3;

	@Column(name = "TIMESEGMENT4")
	private double timeSegment4;

	@Column(name = "TIMESEGMENT5")
	private double timeSegment5;

	@Column(name = "TIMESEGMENT6")
	private double timeSegment6;

	@Column(name = "TIMESEGMENT7")
	private double timeSegment7;

	@Column(name = "TIMESEGMENT8")
	private double timeSegment8;

	@Column(name = "TIMESEGMENT9")
	private double timeSegment9;

	@Column(name = "TIMESEGMENT10")
	private double timeSegment10;

	@Column(name = "TIMESEGMENT11")
	private double timeSegment11;

	@Column(name = "TIMESEGMENT12")
	private double timeSegment12;

	@Column(name = "TIMESEGMENT13")
	private double timeSegment13;

	@Column(name = "TIMESEGMENT14")
	private double timeSegment14;

	@Column(name = "TIMESEGMENT15")
	private double timeSegment15;

	@Column(name = "TIMESEGMENT16")
	private double timeSegment16;

	@Column(name = "CREATEPERSON")
	private Long createperson;

	@Column(name = "CREATEDATE")
	private Date createdate;

	@Column(name = "UPDATEPERSON")
	private Long updateperson;

	@Column(name = "UPDATEDATE")
	private Date updatedate;

	public Long getNeedHourId() {
		return needHourId;
	}

	public void setNeedHourId(Long needHourId) {
		this.needHourId = needHourId;
	}

	public RtgcFlTime getRtgcFlTime() {
		return rtgcFlTime;
	}

	public void setRtgcFlTime(RtgcFlTime rtgcFlTime) {
		this.rtgcFlTime = rtgcFlTime;
	}

	public String getForSegment() {
		return forSegment;
	}

	public void setForSegment(String forSegment) {
		this.forSegment = forSegment;
	}

	public double getTimeSegment1() {
//		if (timeSegment1 == null || "".equals(timeSegment1))
//			timeSegment1 = 0L;
		return timeSegment1;
	}

	public void setTimeSegment1(double timeSegment1) {
		this.timeSegment1 = timeSegment1;
	}

	public double getTimeSegment2() {
//		if (timeSegment2 == null || "".equals(timeSegment2))
//			timeSegment2 = 0L;
		return timeSegment2;
	}

	public void setTimeSegment2(double timeSegment2) {
		this.timeSegment2 = timeSegment2;
	}

	public double getTimeSegment3() {
//		if (timeSegment3 == null || "".equals(timeSegment3))
//			timeSegment3 = 0L;
		return timeSegment3;
	}

	public void setTimeSegment3(double timeSegment3) {
		this.timeSegment3 = timeSegment3;
	}

	public double getTimeSegment4() {
//		if (timeSegment4 == null || "".equals(timeSegment4))
//			timeSegment4 = 0L;
		return timeSegment4;
	}

	public void setTimeSegment4(double timeSegment4) {
		this.timeSegment4 = timeSegment4;
	}

	public double getTimeSegment5() {
//		if (timeSegment5 == null || "".equals(timeSegment5))
//			timeSegment5 = 0L;
		return timeSegment5;
	}

	public void setTimeSegment5(double timeSegment5) {
		this.timeSegment5 = timeSegment5;
	}

	public double getTimeSegment6() {
//		if (timeSegment6 == null || "".equals(timeSegment6))
//			timeSegment6 = 0L;
		return timeSegment6;
	}

	public void setTimeSegment6(double timeSegment6) {
		this.timeSegment6 = timeSegment6;
	}

	public double getTimeSegment7() {
//		if (timeSegment7 == null || "".equals(timeSegment7))
//			timeSegment7 = 0L;
		return timeSegment7;
	}

	public void setTimeSegment7(double timeSegment7) {
		this.timeSegment7 = timeSegment7;
	}

	public double getTimeSegment8() {
//		if (timeSegment8 == null || "".equals(timeSegment8))
//			timeSegment8 = 0L;
		return timeSegment8;
	}

	public void setTimeSegment8(double timeSegment8) {
		this.timeSegment8 = timeSegment8;
	}

	public double getTimeSegment9() {
//		if (timeSegment9 == null || "".equals(timeSegment9))
//			timeSegment9 = 0L;
		return timeSegment9;
	}

	public void setTimeSegment9(double timeSegment9) {
		this.timeSegment9 = timeSegment9;
	}

	public double getTimeSegment10() {
//		if (timeSegment10 == null || "".equals(timeSegment10))
//			timeSegment10 = 0L;
		return timeSegment10;
	}

	public void setTimeSegment10(double timeSegment10) {
		this.timeSegment10 = timeSegment10;
	}

	public double getTimeSegment11() {
//		if (timeSegment11 == null || "".equals(timeSegment11))
//			timeSegment11 = 0L;
		return timeSegment11;
	}

	public void setTimeSegment11(double timeSegment11) {
		this.timeSegment11 = timeSegment11;
	}

	public double getTimeSegment12() {
//		if (timeSegment12 == null || "".equals(timeSegment12))
//			timeSegment12 = 0L;
		return timeSegment12;
	}

	public void setTimeSegment12(double timeSegment12) {
		this.timeSegment12 = timeSegment12;
	}

	public double getTimeSegment13() {
//		if (timeSegment13 == null || "".equals(timeSegment13))
//			timeSegment13 = 0L;
		return timeSegment13;
	}

	public void setTimeSegment13(double timeSegment13) {
		this.timeSegment13 = timeSegment13;
	}

	public double getTimeSegment14() {
//		if (timeSegment14 == null || "".equals(timeSegment14))
//			timeSegment14 = 0L;
		return timeSegment14;
	}

	public void setTimeSegment14(double timeSegment14) {
		this.timeSegment14 = timeSegment14;
	}

	public double getTimeSegment15() {
//		if (timeSegment15 == null || "".equals(timeSegment15))
//			timeSegment15 = 0L;
		return timeSegment15;
	}

	public void setTimeSegment15(double timeSegment15) {
		this.timeSegment15 = timeSegment15;
	}

	public double getTimeSegment16() {
//		if (timeSegment16 == null || "".equals(timeSegment16))
//			timeSegment16 = 0L;
		return timeSegment16;
	}

	public void setTimeSegment16(double timeSegment16) {
		this.timeSegment16 = timeSegment16;
	}

	public Long getCreateperson() {
		return createperson;
	}

	public void setCreateperson(Long createperson) {
		this.createperson = createperson;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Long getUpdateperson() {
		return updateperson;
	}

	public void setUpdateperson(Long updateperson) {
		this.updateperson = updateperson;
	}

	public Date getUpdatedate() {
		return updatedate;
	}

	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}

}
